package com.magic.smartcity.view.me;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.fragment.app.Fragment;
import androidx.navigation.Navigation;

import com.magic.smartcity.R;
import com.magic.smartcity.databinding.FragmentMeFeedbackBinding;

public class MeFeedbackFragment extends Fragment{

    private static final String TAG = "FeedbackFragment";
    private FragmentMeFeedbackBinding mBinding;


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        mBinding = FragmentMeFeedbackBinding.inflate(getLayoutInflater());
        initEvent();
        return mBinding.getRoot();
    }

    private void initEvent() {
        mBinding.list1.setOnClickListener(v -> Navigation.findNavController(v).navigate(R.id.action_feedbackFragment_to_feedbackSubmitFragment));
        mBinding.list2.setOnClickListener(v -> Navigation.findNavController(v).navigate(R.id.action_feedbackFragment_to_feedbackListFragment));
    }


}